package us.wili.dev.dao.mapper.base;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import us.wili.dev.model.entity.Collection;
import us.wili.dev.model.example.CollectionExample;

public interface BaseCollectionMapper {
    int insert(Collection record);

    int batchInsert(List<Collection> records);

    int insertSelective(Collection record);

    int deleteByExample(CollectionExample example);

    int deleteByPrimaryKey(Long id);

    long countByExample(CollectionExample example);

    int updateByExampleSelective(@Param("record") Collection record, @Param("example") CollectionExample example);

    int updateByPrimaryKey(Collection record);

    int updateByPrimaryKeySelective(Collection record);

    Collection selectByPrimaryKey(@Param("id") Long id, @Param("columns") String... columns);

    Collection selectByPrimaryKeyForUpdate(@Param("id") Long id, @Param("columns") String... columns);

    Collection selectByPrimaryKeyInShareMode(@Param("id") Long id, @Param("columns") String... columns);

    List<Collection> selectByExample(CollectionExample example);

    Collection selectOneByExample(CollectionExample example);
}